home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / BuildingBlocks / Message.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  1.2 KB  |  53 lines  |  [TEXT/R*ch]

  1. /*
  2.     File:        Message.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __MESSAGE__
  15. #define __MESSAGE__ 1
  16.  
  17. #ifndef __BLJSTANDARDINCLUDES__
  18. #include "BLJStandardIncludes.h"
  19. #endif
  20.  
  21. #ifndef __DIRECTOBJECT__
  22. #include "DirectObject.h"
  23. #endif
  24.  
  25. /***********************************|****************************************/
  26.  
  27. class TMessage : public TDirectObject
  28. {
  29. public:                                TMessage ( );
  30.                                     TMessage ( const char * message );
  31.                                     TMessage ( const unsigned char * message ); // pascal-style string
  32.                                     TMessage ( short baseID, short index );
  33.                                                 
  34.         virtual                        ~TMessage ( );
  35.  
  36. public:    virtual Handle                GetTextHandle ( ) const;
  37.         virtual unsigned long        GetTextLength ( ) const;
  38.         
  39.         virtual    void                Lock ( ) const;
  40.         virtual void                Unlock ( ) const;
  41.         
  42. public:    virtual Boolean                SetItemValue ( const char * item, const char * newValue );
  43.         virtual Boolean                SetItemValue ( const char * item, const Str255& );
  44.  
  45. protected:
  46.         Handle                        fMessage;    
  47.         unsigned long                fLockCount;    
  48. };
  49.  
  50. /***********************************|****************************************/
  51.  
  52. #endif
  53.